package cc.iits.demo.crane.service.config;

import cc.iits.demo.crane.service.support.mybatis.CustomIdGenerator;
import com.baomidou.mybatisplus.core.incrementer.IdentifierGenerator;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@MapperScan("cc.iits.demo.crane.dao")
@EnableTransactionManagement
@Configuration
public class MybatisPlusConfig {

    @Bean
    public IdentifierGenerator idGenerator() {
        return new CustomIdGenerator(0,0);
    }

}
